import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.Sound;

/**
 * A class that loads and holds all image and sound resources for the project
 * @author Akshay
 *
 */
public class Resources {
	
	//resource locations
	final static String IMAGE_DIR = "res/image/";
	final static String SOUND_DIR = "res/sound/";
	
	//Resources
	
	//Images
	public static Image image_mainmenu_background;
	public static Image image_mainmenu_title;
	public static Image image_mainmenu_button;
	public static Image image_mainmenu_button_hover;
	public static Image image_mainmenu_button_down;
	
	public static Image image_settings_title;
	
	public static Image back_arrow;
	public static Image back_arrow_hover;
	public static Image back_arrow_down;
	
	//Sounds
	public static Sound sound_click;
	

	/**
	 * load all resources for the game
	 * @throws SlickException
	 */
	static void loadResources() throws SlickException{		
		//load images
		image_mainmenu_background = new Image(IMAGE_DIR+"mainmenu_background.png");
		image_mainmenu_title = new Image(IMAGE_DIR+"mainmenu_title.png");
		image_mainmenu_button = new Image(IMAGE_DIR+"mainmenu_button.png");
		image_mainmenu_button_hover = new Image(IMAGE_DIR+"mainmenu_button_hover.png");
		image_mainmenu_button_down = new Image(IMAGE_DIR+"mainmenu_button_down.png");
		
		image_settings_title = new Image(IMAGE_DIR+"settings_title.png");
		
		back_arrow = new Image(IMAGE_DIR+"back_arrow.png");
		back_arrow_hover = new Image(IMAGE_DIR+"back_arrow_hover.png");
		back_arrow_down = new Image(IMAGE_DIR+"back_arrow_down.png");
		
		//load sounds
		sound_click = new Sound(SOUND_DIR+"click.wav");
		
	}

}
